<script setup lang="ts">
// import { RouterView } from 'vue-router';

</script>

<template>
  <div>
    <RouterLink to="/">首页</RouterLink> |
    <RouterLink to="/page2">page2</RouterLink>
    <RouterView />
  </div>
</template>

<style scoped>
a {
  font-weight: bold;
  color: #2c3e50;
}

a.router-link-exact-active {
  color: #42b983;
}
</style>
